﻿@model PeaceBlogData.Tables.Posts
<div class="w-box-inner">

    @Html.Raw(Model.PostExtension)

    <!--<a class="prl-thumbnail popup-link-image" href="~/Templates/Blog/images/_slider/1.jpg">
        <span class="prl-overlay">
            <img src="images/_slider/1.jpg" alt="Post image" />
            <span class="prl-overlay-area o-photo"></span>
        </span>
    </a>-->

    <h1>@Model.Name</h1>
    <div class="prl-article-meta">
        <span>
            <i class="fa fa-clock-o"></i> @Model.SaveDate.ToString("MMMM, dd yyyy")
        </span>
        <span>
            <i class="fa fa-comment-o"></i> <a href="#">2 Comments</a>
        </span>
        <span>
            <i class="fa fa-folder-open"></i> 
            @if (Model.Categories != null && Model.Categories.Count > 0)
            {
                foreach (var category in Model.Categories)
                {
                    @Html.ActionLink(category.Name, "Kategori", new { Id = category.ShortName })
                }
            }
        </span>
    </div>

    @Html.Raw(Model.Content)

    @if (Model.Tags != null && Model.Tags.Count > 0)
    {
        <p class="prl-article-tags">
            <span class="prl-article-tags-header">Etiketler:</span>
            @foreach (var tag in Model.Tags)
            {
                @Html.ActionLink(tag.Tag, "Etiket", new { Id = tag.Tag })
            }
        </p>
    }

</div>
